<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: CRC_Private_Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">CRC_Private_Functions<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a> &raquo; <a class="el" href="group___c_r_c.html">CRC</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaeb8176c3b4653c7210704b61b0ce4726"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_r_c___private___functions.html#gaeb8176c3b4653c7210704b61b0ce4726">CRC_InitResult</a> (void)</td></tr>
<tr class="memdesc:gaeb8176c3b4653c7210704b61b0ce4726"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize CRC caculation.  <a href="#gaeb8176c3b4653c7210704b61b0ce4726">More...</a><br /></td></tr>
<tr class="separator:gaeb8176c3b4653c7210704b61b0ce4726"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga11f30b83f52bd9eafec8c174244ae07e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_r_c___private___functions.html#ga11f30b83f52bd9eafec8c174244ae07e">CRC_DeInit</a> (void)</td></tr>
<tr class="memdesc:ga11f30b83f52bd9eafec8c174244ae07e"><td class="mdescLeft">&#160;</td><td class="mdescRight">DeInitializes the CRC peripheral.  <a href="#ga11f30b83f52bd9eafec8c174244ae07e">More...</a><br /></td></tr>
<tr class="separator:ga11f30b83f52bd9eafec8c174244ae07e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3d151daf15c4461f6393d271c02effd4"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_r_c___private___functions.html#ga3d151daf15c4461f6393d271c02effd4">CRC_Accumulate</a> (const uint8_t *pBuffer, uint32_t bufferLength)</td></tr>
<tr class="memdesc:ga3d151daf15c4461f6393d271c02effd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the 16-bit CRC of 8-bit data buffer using combination of the previous CRC value and the new one.  <a href="#ga3d151daf15c4461f6393d271c02effd4">More...</a><br /></td></tr>
<tr class="separator:ga3d151daf15c4461f6393d271c02effd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga240f1764ab793b05ee632f0a844f4c6a"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___c_r_c___private___functions.html#ga240f1764ab793b05ee632f0a844f4c6a">CRC_Calculate</a> (const uint8_t *pBuffer, uint32_t bufferLength)</td></tr>
<tr class="memdesc:ga240f1764ab793b05ee632f0a844f4c6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Computes the 16-bit CRC of 8-bit data buffer independently of the previous CRC value.  <a href="#ga240f1764ab793b05ee632f0a844f4c6a">More...</a><br /></td></tr>
<tr class="separator:ga240f1764ab793b05ee632f0a844f4c6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga3d151daf15c4461f6393d271c02effd4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3d151daf15c4461f6393d271c02effd4">&#9670;&nbsp;</a></span>CRC_Accumulate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t CRC_Accumulate </td>
          <td>(</td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>pBuffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>bufferLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes the 16-bit CRC of 8-bit data buffer using combination of the previous CRC value and the new one. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hcrc</td><td>pointer to a CRC_HandleTypeDef structure that contains the configuration information for CRC </td></tr>
    <tr><td class="paramname">pBuffer</td><td>pointer to the buffer containing the data to be computed </td></tr>
    <tr><td class="paramname">bufferLength</td><td>length of the buffer to be computed (defined in word, 4 bytes) </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">16-bit</td><td>CRC </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga240f1764ab793b05ee632f0a844f4c6a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga240f1764ab793b05ee632f0a844f4c6a">&#9670;&nbsp;</a></span>CRC_Calculate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t CRC_Calculate </td>
          <td>(</td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>pBuffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>bufferLength</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Computes the 16-bit CRC of 8-bit data buffer independently of the previous CRC value. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pBuffer</td><td>Pointer to the buffer containing the data to be computed </td></tr>
    <tr><td class="paramname">bufferLength</td><td>Length of the buffer to be computed (defined in word, 4 bytes) </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">16-bit</td><td>CRC </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga11f30b83f52bd9eafec8c174244ae07e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga11f30b83f52bd9eafec8c174244ae07e">&#9670;&nbsp;</a></span>CRC_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CRC_DeInit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>DeInitializes the CRC peripheral. </p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">void</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaeb8176c3b4653c7210704b61b0ce4726"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaeb8176c3b4653c7210704b61b0ce4726">&#9670;&nbsp;</a></span>CRC_InitResult()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void CRC_InitResult </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize CRC caculation. </p>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
